package com.canaan.business.mapper.inOutStock;

import com.canaan.business.domain.inOutStock.WmsOutStockDetailOrder;

import java.util.List;

/**
 * 出库单明细Mapper接口
 *
 * @author ruoyi
 * @date 2022-12-20
 */
public interface WmsOutStockDetailOrderMapper
{
    /**
     * 查询出库单明细
     *
     * @param id 出库单明细主键
     * @return 出库单明细
     */
    public WmsOutStockDetailOrder selectWmsOutStockDetailOrderById(Long id);
    /**
     * 查询出库单明细
     *
     * @param no 出库单明细编号
     * @return 出库单明细
     */
    public WmsOutStockDetailOrder selectWmsOutStockDetailOrderByNo(String no);

    /**
     * 查询出库单明细列表
     *
     * @param wmsOutStockDetailOrder 出库单明细
     * @return 出库单明细集合
     */
    public List<WmsOutStockDetailOrder> selectWmsOutStockDetailOrderList(WmsOutStockDetailOrder wmsOutStockDetailOrder);

    /**
     * 新增出库单明细
     *
     * @param wmsOutStockDetailOrder 出库单明细
     * @return 结果
     */
    public int insertWmsOutStockDetailOrder(WmsOutStockDetailOrder wmsOutStockDetailOrder);

    /**
     * 修改出库单明细
     *
     * @param wmsOutStockDetailOrder 出库单明细
     * @return 结果
     */
    public int updateWmsOutStockDetailOrder(WmsOutStockDetailOrder wmsOutStockDetailOrder);

    /**
     * 删除出库单明细
     *
     * @param id 出库单明细主键
     * @return 结果
     */
    public int deleteWmsOutStockDetailOrderById(Long id);

    /**
     * 批量删除出库单明细
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteWmsOutStockDetailOrderByIds(Long[] ids);

    /**
     * 根据出库单列表删除详情信息
     *
     * @param nos 出库单编号列表
     * @return 结果
     */
    public int deleteByOrderNos(List<String> nos);

    int batchInsertOutStockDetailOrder(List<WmsOutStockDetailOrder> wmsOutStockDetailOrders);
}
